package com.malty.mall.util;


import lombok.extern.slf4j.Slf4j;

@Slf4j
public class PreconditionUtils {
    private PreconditionUtils() {
    }

    private static final String DEFAULT_MSG = "invalid argument";


    public static void check(boolean condition, String msg) {
        if (condition) {
            throw new RuntimeException(msg);
        }
    }
}
